home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / perl5 / Getopt::Long.z / Getopt::Long
Encoding:
Text File  |  2002-10-03  |  27.5 KB  |  727 lines

  1.  
  2.  
  3.  
  4. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      GetOptions - extended processing of command line options
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.        use Getopt::Long;
  13.        $result = GetOptions (...option-descriptions...);
  14.  
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      The Getopt::Long module implements an extended getopt function called
  18.      _G_e_t_O_p_t_i_o_n_s(). This function adheres to the POSIX syntax for command line
  19.      options, with GNU extensions. In general, this means that options have
  20.      long names instead of single letters, and are introduced with a double
  21.      dash "--". Support for bundling of command line options, as was the case
  22.      with the more traditional single-letter approach, is provided but not
  23.      enabled by default. For example, the UNIX "ps" command can be given the
  24.      command line "option"
  25.  
  26.        -vax
  27.  
  28.      which means the combination of ----vvvv, ----aaaa and ----xxxx. With the new syntax --------vvvvaaaaxxxx
  29.      would be a single option, probably indicating a computer architecture.
  30.  
  31.      Command line options can be used to set values. These values can be
  32.      specified in one of two ways:
  33.  
  34.        --size 24
  35.        --size=24
  36.  
  37.      GetOptions is called with a list of option-descriptions, each of which
  38.      consists of two elements: the option specifier and the option linkage.
  39.      The option specifier defines the name of the option and, optionally, the
  40.      value it can take. The option linkage is usually a reference to a
  41.      variable that will be set when the option is used. For example, the
  42.      following call to GetOptions:
  43.  
  44.        GetOptions("size=i" => \$offset);
  45.  
  46.      will accept a command line option "size" that must have an integer value.
  47.      With a command line of "--size 24" this will cause the variable $offset
  48.      to get the value 24.
  49.  
  50.      Alternatively, the first argument to GetOptions may be a reference to a
  51.      HASH describing the linkage for the options, or an object whose class is
  52.      based on a HASH. The following call is equivalent to the example above:
  53.  
  54.        %optctl = ("size" => \$offset);
  55.        GetOptions(\%optctl, "size=i");
  56.  
  57.      Linkage may be specified using either of the above methods, or both.
  58.      Linkage specified in the argument list takes precedence over the linkage
  59.      specified in the HASH.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  71.  
  72.  
  73.  
  74.      The command line options are taken from array @ARGV. Upon completion of
  75.      GetOptions, @ARGV will contain the rest (i.e. the non-options) of the
  76.      command line.
  77.  
  78.      Each option specifier designates the name of the option, optionally
  79.      followed by an argument specifier.
  80.  
  81.      Options that do not take arguments will have no argument specifier. The
  82.      option variable will be set to 1 if the option is used.
  83.  
  84.      For the other options, the values for argument specifiers are:
  85.  
  86.      !       Option does not take an argument and may be negated, i.e.
  87.              prefixed by "no". E.g. "foo!" will allow --------ffffoooooooo (with value 1) and
  88.              ----nnnnooooffffoooooooo (with value 0).  The option variable will be set to 1, or
  89.              0 if negated.
  90.  
  91.      +       Option does not take an argument and will be incremented by 1
  92.              every time it appears on the command line. E.g. "more+", when
  93.              used with --------mmmmoooorrrreeee --------mmmmoooorrrreeee --------mmmmoooorrrreeee, will set the option variable to 3
  94.              (provided it was 0 or undefined at first).
  95.  
  96.              The ++++ specifier is ignored if the option destination is not a
  97.              SCALAR.
  98.  
  99.      =s      Option takes a mandatory string argument.  This string will be
  100.              assigned to the option variable.  Note that even if the string
  101.              argument starts with ---- or --------, it will not be considered an option
  102.              on itself.
  103.  
  104.      :s      Option takes an optional string argument.  This string will be
  105.              assigned to the option variable.  If omitted, it will be assigned
  106.              "" (an empty string).  If the string argument starts with ---- or
  107.              --------, it will be considered an option on itself.
  108.  
  109.      =i      Option takes a mandatory integer argument.  This value will be
  110.              assigned to the option variable.  Note that the value may start
  111.              with ---- to indicate a negative value.
  112.  
  113.      :i      Option takes an optional integer argument.  This value will be
  114.              assigned to the option variable.  If omitted, the value 0 will be
  115.              assigned.  Note that the value may start with ---- to indicate a
  116.              negative value.
  117.  
  118.      =f      Option takes a mandatory real number argument.  This value will
  119.              be assigned to the option variable.  Note that the value may
  120.              start with ---- to indicate a negative value.
  121.  
  122.      :f      Option takes an optional real number argument.  This value will
  123.              be assigned to the option variable.  If omitted, the value 0 will
  124.              be assigned.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  137.  
  138.  
  139.  
  140.      A lone dash ---- is considered an option, the corresponding option name is
  141.      the empty string.
  142.  
  143.      A double dash on itself -------- signals end of the options list.
  144.  
  145.      LLLLiiiinnnnkkkkaaaaggggeeee ssssppppeeeecccciiiiffffiiiiccccaaaattttiiiioooonnnn
  146.  
  147.      The linkage specifier is optional. If no linkage is explicitly specified
  148.      but a ref HASH is passed, GetOptions will place the value in the HASH.
  149.      For example:
  150.  
  151.        %optctl = ();
  152.        GetOptions (\%optctl, "size=i");
  153.  
  154.      will perform the equivalent of the assignment
  155.  
  156.        $optctl{"size"} = 24;
  157.  
  158.      For array options, a reference to an array is used, e.g.:
  159.  
  160.        %optctl = ();
  161.        GetOptions (\%optctl, "sizes=i@");
  162.  
  163.      with command line "-sizes 24 -sizes 48" will perform the equivalent of
  164.      the assignment
  165.  
  166.        $optctl{"sizes"} = [24, 48];
  167.  
  168.      For hash options (an option whose argument looks like "name=value"), a
  169.      reference to a hash is used, e.g.:
  170.  
  171.        %optctl = ();
  172.        GetOptions (\%optctl, "define=s%");
  173.  
  174.      with command line "--define foo=hello --define bar=world" will perform
  175.      the equivalent of the assignment
  176.  
  177.        $optctl{"define"} = {foo=>'hello', bar=>'world')
  178.  
  179.      If no linkage is explicitly specified and no ref HASH is passed,
  180.      GetOptions will put the value in a global variable named after the
  181.      option, prefixed by "opt_". To yield a usable Perl variable, characters
  182.      that are not part of the syntax for variables are translated to
  183.      underscores. For example, "--fpp-struct-return" will set the variable
  184.      $opt_fpp_struct_return. Note that this variable resides in the namespace
  185.      of the calling program, not necessarily mmmmaaaaiiiinnnn.  For example:
  186.  
  187.        GetOptions ("size=i", "sizes=i@");
  188.  
  189.      with command line "-size 10 -sizes 24 -sizes 48" will perform the
  190.      equivalent of the assignments
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  203.  
  204.  
  205.  
  206.        $opt_size = 10;
  207.        @opt_sizes = (24, 48);
  208.  
  209.      A lone dash ---- is considered an option, the corresponding Perl identifier
  210.      is $opt_ .
  211.  
  212.      The linkage specifier can be a reference to a scalar, a reference to an
  213.      array, a reference to a hash or a reference to a subroutine.
  214.  
  215.      Note that, if your code is running under the recommended use strict
  216.      'vars' pragma, it may be helpful to declare these package variables via
  217.      use vars perhaps something like this:
  218.  
  219.        use vars qw/ $opt_size @opt_sizes $opt_bar /;
  220.  
  221.      If a REF SCALAR is supplied, the new value is stored in the referenced
  222.      variable. If the option occurs more than once, the previous value is
  223.      overwritten.
  224.  
  225.      If a REF ARRAY is supplied, the new value is appended (pushed) to the
  226.      referenced array.
  227.  
  228.      If a REF HASH is supplied, the option value should look like "key" or
  229.      "key=value" (if the "=value" is omitted then a value of 1 is implied).
  230.      In this case, the element of the referenced hash with the key "key" is
  231.      assigned "value".
  232.  
  233.      If a REF CODE is supplied, the referenced subroutine is called with two
  234.      arguments: the option name and the option value.  The option name is
  235.      always the true name, not an abbreviation or alias.
  236.  
  237.      AAAAlllliiiiaaaasssseeeessss aaaannnndddd aaaabbbbbbbbrrrreeeevvvviiiiaaaattttiiiioooonnnnssss
  238.  
  239.      The option name may actually be a list of option names, separated by
  240.      "|"s, e.g. "foo|bar|blech=s". In this example, "foo" is the true name of
  241.      this option. If no linkage is specified, options "foo", "bar" and "blech"
  242.      all will set $opt_foo. For convenience, the single character "?" is
  243.      allowed as an alias, e.g. "help|?".
  244.  
  245.      Option names may be abbreviated to uniqueness, depending on configuration
  246.      option aaaauuuuttttoooo____aaaabbbbbbbbrrrreeeevvvv.
  247.  
  248.      NNNNoooonnnn----ooooppppttttiiiioooonnnn ccccaaaallllllll----bbbbaaaacccckkkk rrrroooouuuuttttiiiinnnneeee
  249.  
  250.      A special option specifier, <>, can be used to designate a subroutine to
  251.      handle non-option arguments. GetOptions will immediately call this
  252.      subroutine for every non-option it encounters in the options list.  This
  253.      subroutine gets the name of the non-option passed.  This feature requires
  254.      configuration option ppppeeeerrrrmmmmuuuutttteeee, see section CONFIGURATION OPTIONS.
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  269.  
  270.  
  271.  
  272.      See also the examples.
  273.  
  274.      OOOOppppttttiiiioooonnnn ssssttttaaaarrrrtttteeeerrrrssss
  275.  
  276.      On the command line, options can start with ---- (traditional), -------- (POSIX)
  277.      and ++++ (GNU, now being phased out). The latter is not allowed if the
  278.      environment variable PPPPOOOOSSSSIIIIXXXXLLLLYYYY____CCCCOOOORRRRRRRREEEECCCCTTTT has been defined.
  279.  
  280.      Options that start with "--" may have an argument appended, separated
  281.      with an "=", e.g. "--foo=bar".
  282.  
  283.      RRRReeeettttuuuurrrrnnnn vvvvaaaalllluuuueeeessss aaaannnndddd EEEErrrrrrrroooorrrrssss
  284.  
  285.      Configuration errors and errors in the option definitions are signalled
  286.      using die() and will terminate the calling program unless the call to
  287.      Getopt::Long::GetOptions() was embedded in eval { ... } or die() was
  288.      trapped using $SIG{__DIE__}.
  289.  
  290.      A return value of 1 (true) indicates success.
  291.  
  292.      A return status of 0 (false) indicates that the function detected one or
  293.      more errors during option parsing. These errors are signalled using
  294.      warn() and can be trapped with $SIG{__WARN__}.
  295.  
  296.      Errors that can't happen are signalled using Carp::croak().
  297.  
  298. CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY
  299.      _G_e_t_o_p_t::_L_o_n_g::_G_e_t_O_p_t_i_o_n_s() is the successor of nnnneeeewwwwggggeeeettttoooopppptttt....ppppllll that came
  300.      with Perl 4. It is fully upward compatible.  In fact, the Perl 5 version
  301.      of newgetopt.pl is just a wrapper around the module.
  302.  
  303.      If an "@" sign is appended to the argument specifier, the option is
  304.      treated as an array. _V_a_l_u_e(s) are not set, but pushed into array
  305.      @opt_name. If explicit linkage is supplied, this must be a reference to
  306.      an ARRAY.
  307.  
  308.      If an "%" sign is appended to the argument specifier, the option is
  309.      treated as a hash. _V_a_l_u_e(s) of the form "name=value" are set by setting
  310.      the element of the hash %opt_name with key "name" to "value" (if the
  311.      "=value" portion is omitted it defaults to 1). If explicit linkage is
  312.      supplied, this must be a reference to a HASH.
  313.  
  314.      If configuration option ggggeeeettttoooopppptttt____ccccoooommmmppppaaaatttt is set (see section CONFIGURATION
  315.      OPTIONS), options that start with "+" or "-" may also include their
  316.      arguments, e.g. "+foo=bar". This is for compatiblity with older
  317.      implementations of the GNU "getopt" routine.
  318.  
  319.      If the first argument to GetOptions is a string consisting of only non-
  320.      alphanumeric characters, it is taken to specify the option starter
  321.      characters. Everything starting with one of these characters from the
  322.      starter will be considered an option. UUUUssssiiiinnnngggg aaaa ssssttttaaaarrrrtttteeeerrrr aaaarrrrgggguuuummmmeeeennnntttt iiiissss
  323.      ssssttttrrrroooonnnnggggllllyyyy ddddeeeepppprrrreeeeccccaaaatttteeeedddd....
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  335.  
  336.  
  337.  
  338.      For convenience, option specifiers may have a leading ---- or --------, so it is
  339.      possible to write:
  340.  
  341.         GetOptions qw(-foo=s --bar=i --ar=s);
  342.  
  343.  
  344. EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  345.      If the option specifier is "one:i" (i.e. takes an optional integer
  346.      argument), then the following situations are handled:
  347.  
  348.         -one -two            -> $opt_one = '', -two is next option
  349.         -one -2              -> $opt_one = -2
  350.  
  351.      Also, assume specifiers "foo=s" and "bar:s" :
  352.  
  353.         -bar -xxx            -> $opt_bar = '', '-xxx' is next option
  354.         -foo -bar            -> $opt_foo = '-bar'
  355.         -foo --              -> $opt_foo = '--'
  356.  
  357.      In GNU or POSIX format, option names and values can be combined:
  358.  
  359.         +foo=blech           -> $opt_foo = 'blech'
  360.         --bar=               -> $opt_bar = ''
  361.         --bar=--             -> $opt_bar = '--'
  362.  
  363.      Example of using variable references:
  364.  
  365.         $ret = GetOptions ('foo=s', \$foo, 'bar=i', 'ar=s', \@ar);
  366.  
  367.      With command line options "-foo blech -bar 24 -ar xx -ar yy" this will
  368.      result in:
  369.  
  370.         $foo = 'blech'
  371.         $opt_bar = 24
  372.         @ar = ('xx','yy')
  373.  
  374.      Example of using the <> option specifier:
  375.  
  376.         @ARGV = qw(-foo 1 bar -foo 2 blech);
  377.         GetOptions("foo=i", \$myfoo, "<>", \&mysub);
  378.  
  379.      Results:
  380.  
  381.         mysub("bar") will be called (with $myfoo being 1)
  382.         mysub("blech") will be called (with $myfoo being 2)
  383.  
  384.      Compare this with:
  385.  
  386.         @ARGV = qw(-foo 1 bar -foo 2 blech);
  387.         GetOptions("foo=i", \$myfoo);
  388.  
  389.      This will leave the non-options in @ARGV:
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  401.  
  402.  
  403.  
  404.         $myfoo -> 2
  405.         @ARGV -> qw(bar blech)
  406.  
  407.  
  408. CCCCOOOONNNNFFFFIIIIGGGGUUUURRRRAAAATTTTIIIIOOOONNNN OOOOPPPPTTTTIIIIOOOONNNNSSSS
  409.      GGGGeeeettttOOOOppppttttiiiioooonnnnssss can be configured by calling subroutine
  410.      GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg::::::::CCCCoooonnnnffffiiiigggguuuurrrreeee. This subroutine takes a list of quoted strings,
  411.      each specifying a configuration option to be set, e.g.  iiiiggggnnnnoooorrrreeee____ccccaaaasssseeee.
  412.      Options can be reset by prefixing with nnnnoooo____, e.g.  nnnnoooo____iiiiggggnnnnoooorrrreeee____ccccaaaasssseeee. Case
  413.      does not matter. Multiple calls to ccccoooonnnnffffiiiigggg are possible.
  414.  
  415.      Previous versions of Getopt::Long used variables for the purpose of
  416.      configuring. Although manipulating these variables still work, it is
  417.      strongly encouraged to use the new ccccoooonnnnffffiiiigggg routine. Besides, it is much
  418.      easier.
  419.  
  420.      The following options are available:
  421.  
  422.      default     This option causes all configuration options to be reset to
  423.                  their default values.
  424.  
  425.      auto_abbrev Allow option names to be abbreviated to uniqueness.  Default
  426.                  is set unless environment variable POSIXLY_CORRECT has been
  427.                  set, in which case aaaauuuuttttoooo____aaaabbbbbbbbrrrreeeevvvv is reset.
  428.  
  429.      getopt_compat
  430.                  Allow '+' to start options.  Default is set unless
  431.                  environment variable POSIXLY_CORRECT has been set, in which
  432.                  case ggggeeeettttoooopppptttt____ccccoooommmmppppaaaatttt is reset.
  433.  
  434.      require_order
  435.                  Whether non-options are allowed to be mixed with options.
  436.                  Default is set unless environment variable POSIXLY_CORRECT
  437.                  has been set, in which case b<require_order> is reset.
  438.  
  439.                  See also ppppeeeerrrrmmmmuuuutttteeee, which is the opposite of rrrreeeeqqqquuuuiiiirrrreeee____oooorrrrddddeeeerrrr.
  440.  
  441.      permute     Whether non-options are allowed to be mixed with options.
  442.                  Default is set unless environment variable POSIXLY_CORRECT
  443.                  has been set, in which case ppppeeeerrrrmmmmuuuutttteeee is reset.  Note that
  444.                  ppppeeeerrrrmmmmuuuutttteeee is the opposite of rrrreeeeqqqquuuuiiiirrrreeee____oooorrrrddddeeeerrrr.
  445.  
  446.                  If ppppeeeerrrrmmmmuuuutttteeee is set, this means that
  447.  
  448.                      -foo arg1 -bar arg2 arg3
  449.  
  450.                  is equivalent to
  451.  
  452.                      -foo -bar arg1 arg2 arg3
  453.  
  454.                  If a non-option call-back routine is specified, @ARGV will
  455.                  always be empty upon succesful return of GetOptions since all
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  467.  
  468.  
  469.  
  470.                  options have been processed, except when -------- is used:
  471.  
  472.                      -foo arg1 -bar arg2 -- arg3
  473.  
  474.                  will call the call-back routine for arg1 and arg2, and
  475.                  terminate leaving arg2 in @ARGV.
  476.  
  477.                  If rrrreeeeqqqquuuuiiiirrrreeee____oooorrrrddddeeeerrrr is set, options processing terminates when
  478.                  the first non-option is encountered.
  479.  
  480.                      -foo arg1 -bar arg2 arg3
  481.  
  482.                  is equivalent to
  483.  
  484.                      -foo -- arg1 -bar arg2 arg3
  485.  
  486.  
  487.      bundling (default: reset)
  488.                  Setting this variable to a non-zero value will allow single-
  489.                  character options to be bundled. To distinguish bundles from
  490.                  long option names, long options must be introduced with --------
  491.                  and single-character options (and bundles) with ----. For
  492.                  example,
  493.  
  494.                      ps -vax --vax
  495.  
  496.                  would be equivalent to
  497.  
  498.                      ps -v -a -x --vax
  499.  
  500.                  provided "vax", "v", "a" and "x" have been defined to be
  501.                  valid options.
  502.  
  503.                  Bundled options can also include a value in the bundle; for
  504.                  strings this value is the rest of the bundle, but integer and
  505.                  floating values may be combined in the bundle, e.g.
  506.  
  507.                      scale -h24w80
  508.  
  509.                  is equivalent to
  510.  
  511.                      scale -h 24 -w 80
  512.  
  513.                  Note: resetting bbbbuuuunnnnddddlllliiiinnnngggg also resets bbbbuuuunnnnddddlllliiiinnnngggg____oooovvvveeeerrrrrrrriiiiddddeeee.
  514.  
  515.      bundling_override (default: reset)
  516.                  If bbbbuuuunnnnddddlllliiiinnnngggg____oooovvvveeeerrrrrrrriiiiddddeeee is set, bundling is enabled as with
  517.                  bbbbuuuunnnnddddlllliiiinnnngggg but now long option names override option bundles.
  518.                  In the above example, ----vvvvaaaaxxxx would be interpreted as the option
  519.                  "vax", not the bundle "v", "a", "x".
  520.  
  521.                  Note: resetting bbbbuuuunnnnddddlllliiiinnnngggg____oooovvvveeeerrrrrrrriiiiddddeeee also resets bbbbuuuunnnnddddlllliiiinnnngggg.
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  533.  
  534.  
  535.  
  536.                  NNNNooootttteeee:::: Using option bundling can easily lead to unexpected
  537.                  results, especially when mixing long options and bundles.
  538.                  Caveat emptor.
  539.  
  540.      ignore_case  (default: set)
  541.                  If set, case is ignored when matching options.
  542.  
  543.                  Note: resetting iiiiggggnnnnoooorrrreeee____ccccaaaasssseeee also resets iiiiggggnnnnoooorrrreeee____ccccaaaasssseeee____aaaallllwwwwaaaayyyyssss.
  544.  
  545.      ignore_case_always (default: reset)
  546.                  When bundling is in effect, case is ignored on single-
  547.                  character options also.
  548.  
  549.                  Note: resetting iiiiggggnnnnoooorrrreeee____ccccaaaasssseeee____aaaallllwwwwaaaayyyyssss also resets iiiiggggnnnnoooorrrreeee____ccccaaaasssseeee.
  550.  
  551.      pass_through (default: reset)
  552.                  Unknown options are passed through in @ARGV instead of being
  553.                  flagged as errors. This makes it possible to write wrapper
  554.                  scripts that process only part of the user supplied options,
  555.                  and passes the remaining options to some other program.
  556.  
  557.                  This can be very confusing, especially when ppppeeeerrrrmmmmuuuutttteeee is also
  558.                  set.
  559.  
  560.      prefix      The string that starts options. See also pppprrrreeeeffffiiiixxxx____ppppaaaatttttttteeeerrrrnnnn.
  561.  
  562.      prefix_pattern
  563.                  A Perl pattern that identifies the strings that introduce
  564.                  options.  Default is (--|-|\+) unless environment variable
  565.                  POSIXLY_CORRECT has been set, in which case it is (--|-).
  566.  
  567.      debug (default: reset)
  568.                  Enable copious debugging output.
  569.  
  570. OOOOTTTTHHHHEEEERRRR UUUUSSSSEEEEFFFFUUUULLLL VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  571.      $Getopt::Long::VERSION
  572.                  The version number of this Getopt::Long implementation in the
  573.                  format major.minor. This can be used to have Exporter check
  574.                  the version, e.g.
  575.  
  576.                      use Getopt::Long 3.00;
  577.  
  578.                  You can inspect $Getopt::Long::major_version and
  579.                  $Getopt::Long::minor_version for the individual components.
  580.  
  581.      $Getopt::Long::error
  582.                  Internal error flag. May be incremented from a call-back
  583.                  routine to cause options parsing to fail.
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  599.  
  600.  
  601.  
  602. AUTHOR
  603.      Johan Vromans <jvromans@squirrel.nl>
  604.  
  605. CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT AAAANNNNDDDD DDDDIIIISSSSCCCCLLLLAAAAIIIIMMMMEEEERRRR
  606.      This program is Copyright 1990,1999 by Johan Vromans.  This program is
  607.      free software; you can redistribute it and/or modify it under the terms
  608.      of the GNU General Public License as published by the Free Software
  609.      Foundation; either version 2 of the License, or (at your option) any
  610.      later version.
  611.  
  612.      This program is distributed in the hope that it will be useful, but
  613.      WITHOUT ANY WARRANTY; without even the implied warranty of
  614.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
  615.      Public License for more details.
  616.  
  617.      If you do not have a copy of the GNU General Public License write to the
  618.      Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.                                                                        PPPPaaaaggggeeee 11110000
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))                                                GGGGeeeettttoooopppptttt::::::::LLLLoooonnnngggg((((3333))))
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.                                                                        PPPPaaaaggggeeee 11111111
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.